<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

    <head>
        <meta charset="UTF-8">
        <title>登录页面</title>
        <link rel="stylesheet" href="demo.css">
        <script type="text/javascript" src="demo.js"></script>
    </head>

    <body>
        <span  th:if="${msg}" style="color: red;">用户名或密码错误</span>
        <form action="doLogin" method="post">
            <input name="username" value="zhangsan"><br>
            <input name="password" value="1234"><br>
            <input type="submit" value="登录">
        </form>
        <br>
        下面图片和文字用来测试静态资源访问不被拦截的
        <br>
        <img src="bone.png">
        <span class="cc" id="sth">fdsfdsfds</span>
        <script>
            let sth = document.getElementById("sth");
            sth.addEventListener("click",fun);
        </script>
    </body>

</html>
